﻿using System.Collections.Concurrent;
using System.Collections.Generic;

namespace Tsari.Mes.Plc.Data
{
    public class MesConstants
    {
        //public readonly static ConcurrentDictionary<PlcType, Type> PlcToHslDicts = new ConcurrentDictionary<PlcType, Type>(new Dictionary<PlcType, Type>
        //{
        //    { PlcType.Melsec, typeof(HslCommunication.Profinet.Melsec.MelsecMcNet) },
        //    { PlcType.Siements, typeof(HslCommunication.Profinet.Siemens.SiemensS7Net) },
        //    { PlcType.Inovance, typeof(HslCommunication.Profinet.Inovance.InovanceTcpNet) },
        //    { PlcType.Omron, typeof(HslCommunication.Profinet.Omron.OmronCipNet) },
        //});


        public readonly static ConcurrentDictionary<PlcCategoryType, Type> PlcToHslDicts = new ConcurrentDictionary<PlcCategoryType, Type>(new Dictionary<PlcCategoryType, Type>
        {
            { PlcCategoryType.Melsec, typeof(HslCommunication.Profinet.Melsec.MelsecMcNet) },
            { PlcCategoryType.Siements, typeof(HslCommunication.Profinet.Siemens.SiemensS7Net) },
            { PlcCategoryType.Inovance, typeof(HslCommunication.Profinet.Inovance.InovanceTcpNet) },
            { PlcCategoryType.Omron, typeof(HslCommunication.Profinet.Omron.OmronCipNet) },
        });
        
    }
}
